<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>子页面的弹窗2</title>
	<link rel="stylesheet" type="text/css" href="{{URL::asset('common/css/commonality.css')}}">
	<link rel="stylesheet" type="text/css" href="{{URL::asset('js/layui-v2.3.0/layui/css/layui.css')}}">
	<link rel="stylesheet" type="text/css" href="{{URL::asset('css/music/amendSP.css')}}">
	<link rel="stylesheet" type="text/css" href="{{URL::asset('images/iconfont/iconfont.css')}}">
    <link rel="stylesheet" href="{{URL::asset('css/app.css')}}">
</head>
<body>
	<div class="box_2 box_1">
	<h3>代理信息查看</h3>
    @include('flash::message')
    <form action="{{url('/admin/updateSp/'.$data['id'])}}" method="post">
        {{csrf_field()}}
		<div class="pop-upWindows">
			<div class="pop-upWindows_left">
				<label for="">全称：<input name="full_name" type="text" placeholder="北京跳动字节科技有限公司"  style="font-weight:bold;" value="{{$data['full_name']}}" /><br/></label>
				<label for="">简称：<input name="simple_name"	type="text" placeholder="东乐" value="{{$data['simple_name']}}" ><br/></label>
				<label for="">性质：
					<span>
						@switch($data['sp_type'])
							@case(1)
							音视大网站/APP
							@break
							@case(2)
							短视频平台
							@break
							@case(3)
							电信运营商
							@break
							@case(4)
							协会
							@break
							@case(5)
							应用类APP
							@break
							@case(6)
							其他
							@break
						@endswitch
					</span></label><br/>
				<label for="">证件：<span>
						@switch($data['card_type'])
							@case(1)
							身份证
							@break
							@case(2)
							营业执照
							@break
							@case(3)
							护照
							@break
							@case(4)
							其他证件
							@break
						@endswitch
					</span></label><br/>
				<label for="">证件号：<span>{{$data['card']}}</span></label><br/>
				<label for="">协议：<span>{{$data['agree_record']}}</span></label><br/>
				<label for="">签约日：<span>{{$data['fix_date']}}</span></label><br/>
				<label for="">到期日：<span>{{$data['expired_time']}}</span></label>
				<br/>
				<label for="">联系人：<input name="phone_name" type="text" placeholder="请填写联系人" style="margin-left:15px;" value="{{$data['phone_name']}}"><br/></label>
				<label for="">联系电话：<input name="phone"	type="text" placeholder="13801380138" value="{{$data['phone']}}"><br/></label>
				<label for="">微信：<input name="weixin"	type="text" placeholder="13801380138" class="w33" value="{{$data['weixin']}}"><br/></label>
				<label for="">微博：<input name="weibo"	type="text" placeholder="" class="w33" value="{{$data['weibo']}}"><br/></label>
				<label for="">email：<input name="email" type="text" placeholder="ddyy@ddyy.com"  style="margin-left:24px;" value="{{$data['email']}}"><br/></label>
				<label for="">网址：<input name="url"	type="text" placeholder="" class="w33" value="{{$data['url']}}"><br/></label>
				<p class="advanced">高级设置</p>
				<div style="display:none;" class="form">
					选择公司
					<select>
						<option>北京三咖</option>
						<option>北京。。。。。</option>
						<option>北京XXXXXXXX</option>
						<option>北京</option>
						<option>北京</option>
					</select>
				</div>
			</div>
			<div class="pop-upWindows_center">
				<label for="" style="font-weight:bold;">主管业务：
					<select name="main">
						@foreach($mainSale as $v)
							<option @if($v['name']==$data['main']) selected @endif>{{$v['name']}}</option>
						@endforeach
					</select>
					{{--<span>{{$data['main']}}</span>--}}
				</label><br/>
				<label for="">电话：<span>{{$data['main_phone']}}</span></label><br/>
				<label for="">辅助业务员：
					<select name="assist">
						<option>无</option>
						@foreach($assistSale as $v)
							<option @if($v['name']==$data['assist']) selected @endif>{{$v['name']}}</option>
						@endforeach
					</select>
					{{--<span>{{$data['assist']}}</span>--}}
				</label><br/>
				<label for="">电话：<span>{{$data['assist_phone']}}</span></label><br/>
				<p style="margin-top:30px;font-weight:bold;">纪念日：</p>
				<div class="informationBox">
                    @foreach($data['memory_day'] as $k => $v)
						<div class="detailBox{{$k + 1}}">
							<label for=""><input name="memory_day{{$k + 1}}" type="date" class="input_date" value="{{$v['day']}}"></label>
							<i class="icon iconfont rili">&#xe614;</i>
							<select name="memory_des{{$k + 1}}" id="">
								@switch($v['des'])
									@case('生日')
										<option value="生日" selected>生日</option>
										<option value="开业">开业</option>
										<option value="主管生日">主管生日</option>
									@break
									@case('开业')
										<option value="生日">生日</option>
										<option value="开业" selected>开业</option>
										<option value="主管生日">主管生日</option>
									@break
									@case('主管生日')
										<option value="生日">生日</option>
										<option value="开业">开业</option>
										<option value="主管生日" selected>主管生日</option>
									@break
								@endswitch
							</select>
							<i class="icon iconfont jiahao_{{$k +1}} addImg">&#xe600;</i>
						</div>
                    @endforeach
				</div>
					<p style="font-weight:bold;">合作描述：</p>
				<textarea name="" id="" cols="20" rows="10" style="vertical-align: top;width:282px;height:123px;">{{$data['work_sketch']}}</textarea>
			</div>
			<div class="pop-upWindows_right">
				<P style="font-weight:bold;"><span>备注：</span><span>操作人：{{$data['check_man']}}</span></P>
				<textarea name="" id="" cols="20" rows="10" style="vertical-align: top;width:282px;height:123px;">{{$data['remark']}}</textarea>
			</div>
		</div>
		<button class="save">保存</button>
	</form>
</div>
</body>
</html>
<script type="text/javascript" src="{{URL::asset('/js/layui-v2.3.0/layui/layui.all.js')}}"></script>
<script type="text/javascript" src="{{URL::asset('js/music/amendSP.js')}}"></script>
<script>
    $(function(){
        //点击+增加三个
        $('.jiahao_1').click(function(){
            $('.detailBox2').show();
        }) ;
        $('.jiahao_2').click(function(){
            $('.detailBox3').show();
        });
        //高级设置
        $(".advanced").click(function(){
            $(".form").slideToggle(1000);
        });
		//点击添加备注
        $(".add_remark").on('click',function(){
            layer.prompt({title: '添加备注', formType: 1}, function(pass, index){
                layer.close(index);
            });
        });
    });
	//返回上一页
	// $('.save').click(function(){
	// 	history.go(-1)
	// });

</script>
